package cn.exrick.xboot.modules.getConfig.controller;


import cn.exrick.xboot.common.utils.ResultUtil;
import cn.exrick.xboot.common.utils.jiuqi.utils.ServeUtil;
import cn.exrick.xboot.common.vo.Result;
import cn.exrick.xboot.modules.commonLink.entity.CommonLink;
import cn.exrick.xboot.modules.getConfig.entity.JiuQiConfig;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@Api(description = "常用链接管理接口")
@RequestMapping("/xboot/config")
@Transactional
public class configTest {

    @Autowired
    private JiuQiConfig jiuQiConfig;


    @RequestMapping(value = "/get", method = RequestMethod.GET)
    @ApiOperation(value = "")
    public Result<String> get(){
        String portalIp = ServeUtil.getInet4Address();
        System.out.println(portalIp);
        return new ResultUtil<String>().setData(portalIp);
    }
}
